
<%--顾赛男，修改车票信息页面 --%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.xz.group12306.domain.Ticket"%>
<%@ page import="java.util.List"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<title>所有车票记录</title>
<link rel="stylesheet" type="text/css"
	href="../js/util/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="../js/util/easyui/themes/icon.css">

<script type="text/javascript"
	src="../js/util/jquery/jquery-3.2.1.min.js"></script>
<script type="text/javascript"
	src="../js/util/easyui/jquery.easyui.min.js"></script>

</head>
<body>
<%-- 	<%
		List<Ticket> ticketss = (List<Ticket>) session.getAttribute("tickets");
	%> --%>
	<div style="margin: 20px 0;"></div>

	<table class="easyui-datagrid" title="所有用户信息"
		style="width: 700px; height: 250px">
		<thead>
			<tr>
				<th data-options="field:'id',width:80">编号</th>
				<th data-options="field:'depature',width:100">出发地</th>
				<th data-options="field:'destinction',width:80">目的地</th>
				<th data-options="field:'trainno',width:80">车次</th>
				<th data-options="field:'starttime',width:100">出发时间</th>

				<th data-options="field:'costtime',width:200">花费时间</th>
				<th data-options="field:'ticketno',width:80">余票</th>
			</tr>
		</thead>
		<%-- <%
			for (Ticket ticket : ticketss) {
		%> --%>
		<tbody>
		<c:forEach items="${ tickets}" var="ticket">
			<tr>
				<td>${ticket.ticketId }</td>
				<td>${ticket.depature }</td>
				<td>${ticket.destinction }</td>
				<td>${ticket.trainNo }</td>
				<td>${ticket.startTime }</td>
				<td>${ticket.costTime}</td>
				<td>${ticket.ticketNo}</td>
			</tr>
			</c:forEach>
		</tbody>
		
		<a href="AdminIndex.jsp" class="easyui-linkbutton"
				onclick="clearForm()" style="width: 80px">Return</a>
	</table>
</body>
</html>